<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 伪类选择器 */
        a{
            color:black;
        }
        /* 鼠标放到上面 */
        a:hover{
            color:red;
        }
        /* 点击鼠标 */
        a:active{
            color:green;
        }
        input{
            color:black;
        }
        /* 鼠标放到上面 */
        input:hover{
            color:red;
        }
        /* 点击鼠标 */
        input:active{
            color:green;
        }

    </style>
</head>
<body>
    <a href="#">不跳转</a>
    <br/>
    <input type="button" value="按钮">
</body>
</html>